package cn.kgc.ssm.mapper;

import cn.kgc.ssm.entity.Member;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 课工场
 * @date 2024/3/8
 * @description
 */
public interface MemberMapper {

    void registerMember(Member member);

    Member selectByNameAndPassword(@Param("memberName") String memberName, @Param("password") String password);

    Member selectByName(String memberName);

    List<Member> selectList(String memberName);

    void addMember(Member member);

    void editMember(Member member);

    void deleteMember(@Param("ids") Integer[] ids);

    void resetPwd(@Param("id") Integer id, @Param("password") String password);
}
